<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录提示 - 蔡BB论坛</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f1f1f1;
        }
        header {
            background-color: #333;
            padding: 20px;
            text-align: center;
            position: relative;
        }
        .logged-in-indicator {
            position: absolute;
            top: 10px; /* 根据header的padding调整 */
            right: 20px; /* 根据需要调整位置 */
            color: #fff;
            background-color: #4CAF50; /* 绿色背景 */
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 14px;
        }
        nav {
            display: none;
        }
        .container {
            width: 80%;
            margin: auto;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            background-color: white;
            text-align: center;
        }
        .message {
            margin-top: 50px;
            font-size: 24px;
            color: #333;
        }
        .return-home {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #333;
            color: white;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            cursor: pointer;
        }
        .return-home:hover {
            background-color: #ddd;
            color: black;
        }
        .logout-button {
            margin-top: 20px;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            background-color: #f44336;
            color: white;
            cursor: pointer;
        }
        .logout-button:hover {
            background-color: #e53935;
        }
        footer {
            background-color: #f1f1f1;
            padding: 20px;
            text-align: center;
            margin-top: 30px;
        }
        #username_state{
            font-size: 30px;
            color: black;
            font-family: Arial, sans-serif;
        }
    </style>
</head>
<body>
    <header>
        <h1>欢迎来到蔡BB论坛</h1>
        <div class="logged-in-indicator">用户：<span id="username_state">{{username}}</span>，已登录</div>
    </header>
    <div class="container">
        <div class="message">
            <p>您已经登录！</p>
        </div>
        <form action="/logout" method="post">
            <button type="submit" class="logout-button">退出登录</button>
        </form>
        <a href="/" class="return-home">返回首页</a>
    </div>
    <footer>
        <p>版权所有 &copy; 2022 蔡BB论坛</p>
    </footer>
</body>
</html>